package com.jrx.anytxn.investor.mapper.ext;

import com.jrx.anytxn.investor.entity.TlCustomerInvestorLimit;
import com.jrx.anytxn.investor.mapper.base.TlCustomerInvestorLimitMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户出资方授信额度mapper扩展
 *
 * @author liuyang
 * @date  2020-06-09
 **/
public interface ExtTlCustomerInvestorLimitMapper extends TlCustomerInvestorLimitMapper {

    /**
     * 批量插入客户出资方授信额度
     *
     * @param customerInvestorLimits 客户出资方授信额度
     * @return int 插入条数
     * @author liuyang
     * @date  2020-06-09
     */
    int batchInsert(List<TlCustomerInvestorLimit> customerInvestorLimits);

    /**
     * 根据客户id和出资方id查询客户出资方授信额度
     *
     * @param customerId 客户id
     * @param investorId 出资方id
     * @param tenantId 租户ID
     * @param statusList 状态
     * @return List<TlCustomerInvestorLimit> 客户出资方授信额度
     * @author liuyang
     * @date  2020-06-09
     */
    List<TlCustomerInvestorLimit> selectByCustomerIdAndInvestorId(@Param("customerId") String customerId, @Param("investorId") String investorId, @Param("tenantId") String tenantId, @Param("statusList")List<String> statusList);
}